﻿/*<summary>
Created By : Swati
Created On : 10/02/2008
Class Name : PatientRegistration
Used In    : 
------------------------------------------------------------------------
Modification Log  
------------------------------------------------------------------------
Created By        Modified By         Remarks                             
-----------       ------------        ----------------------------------
                                                                          
------------------------------------------------------------------------
</summary>*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RegistrationController
{
    public class PatientRegistration
    {
        private PatientInfo _PatientInfo;
        private string _CRNumber;
        private string _Consultant;
        private string _PatientType;
        private string _RegistrationFees;
        private string _ConsultantFees;
        private string _InitialDeposit;
        private string _PackageName;

        public PatientRegistration()
        {
            _PatientInfo = new PatientInfo();
        }

        public PatientRegistration(PatientInfo objPatient)
        {
            _PatientInfo = new PatientInfo(objPatient);
        }

        ~PatientRegistration()
        {
            _PatientInfo.Dispose();
        }

        public PatientInfo PatientInfo
        {
            get { return _PatientInfo; }
            set { 
                if(_PatientInfo != null) 
                {
                    _PatientInfo.Dispose();
                }
                _PatientInfo = value; 
            }
        }

        public string CRNumber
        {
            get { return _CRNumber; }
            set { _CRNumber = value; }
        }

        public string Consultant
        {
            get { return _Consultant; }
            set { _Consultant = value; }
        }

        public string PatientType
        {
            get { return _PatientType; }
            set { _PatientType = value; }
        }

        public string RegistrationFees
        {
            get { return _RegistrationFees; }
            set { _RegistrationFees = value; }
        }

        public string ConsultantFees
        {
            get { return _ConsultantFees; }
            set { _ConsultantFees = value; }
        }

        public string InitialDeposit
        {
            get { return _InitialDeposit; }
            set { _InitialDeposit = value; }
        }

        public string PackageName
        {
            get { return _PackageName; }
            set { _PackageName = value; }
        }

        public void Dispose()
        {
            System.GC.SuppressFinalize(this);
        }
    }
}
